<html>
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0; minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>HouJia</title>
<!--    <script  src="./ground.js"></script>-->
    <script language="javascript">
        function shaeback(){
            alert('摇动');
        }
        
        
        function callBackTest(testStr){
            alert(testStr);
        }
    function checkShake(){
        try{
            grounds.showShareButton('2');
        }catch(e){
            alert(e);
        }

    }
    
    function json2str(o) {
        var arr = [];
        var fmt = function(s) {
            if (typeof s == 'object' && s != null) return json2str(s);
            return /^(string|number)$/.test(typeof s) ? "\"" + s + "\"" : s;
        }
        for (var i in o) arr.push("\"" + i + "\":" + fmt(o[i]));
        return '{' + arr.join(',') + '}';
    }


        function shakeOpen(){
            try{
                
                appNativeApi.pop();
                
                
            
            }catch(e){
                alert(e);
            }

      }
    
    function subject_callback(uid,nickName,avatar,content,images,tid,replyId,toGuid,toNickName,toAvatar){
        alert(images);
    }

    
      function shakeClose(){
          try{
             subject_callback('41596306','sinawb111','http://y3.ifengimg.com/ifengimcp/pic/20141029/f8d4c2fa66a7a6d47629_size53_w170_h165.png','听音乐','["http://y1.ifengimg.com/ifengimcp/pic/2015/01/13/chat/w481_h852_8fcc2bd0-a5df-11e4-b164-49ed88c9bf77.jpg"]','','','','','');
             
             subject_callback('41596306','sinawb111','http://y3.ifengimg.com/ifengimcp/pic/20141029/f8d4c2fa66a7a6d47629_size53_w170_h165.png','疯疯癫癫','[]','','','','','');
             
             subject_callback('49492354','','http://my.ifengimg.com/150/69/fd1cb57ee267077c/1421807291/fd1cb57ee267077c_1.jpg','Fddd','[]','','','','','');
             
             subject_callback('41596306','nightelf1234','http://y3.ifengimg.com/ifengimcp/pic/20141029/f8d4c2fa66a7a6d47629_size53_w170_h165.png','刚刚反反复复风风光光给反反复复','[]','','','','','');
                               
             // alert(ground);
             // ground.dispatch('参数','2','3','4','5');
             // ground.setToolBarType('2');
          }catch(e){
              alert(e);
          }
      }
    
    
    

    </script>
  </head>
	<body>
		<!-- a href="http://i.ifeng.com/ground.js">download</a></br -->
    <div style="height:60px;"></div>
    <button type="button" onclick="checkShake();" style="margin-left:60;width:185px;height:60px;">检测该App版本是否支持摇动</button>
    <div style="height:40px;"></div>
    <button type="button" onclick="shakeOpen();" style="margin-left:60;width:185px;height:60px;">啦啦</button>
    <div style="height:40px;"></div>
    <button type="button" onclick="shakeClose();" style="margin-left:60;width:185px;height:60px;">定制</button>
    
    
    <form action="test.php" method="post" enctype="multipart/form-data">
        <label for="file">Filename:</label>
        <input type="file" name="file" id="file"><br>
            <input type="submit" name="submit" value="Submit">
    </form>
	</body>
</html>